home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
SoftwareUpdate
/
CyberGraphiX Update
/
CV64VBlankHack.lha
/
CV64VBlankHack
/
CV64VBlankHack.readme
< prev
next >
Wrap
Text File
|
1996-08-28
|
1KB
|
27 lines
short: Makes VBLANK work on CyberVision64 (hack, q&d)
type: gfx/board
author: Martin Blom (lcs@lysator.liu.se)
uploader: Martin Blom (lcs@lysator.liu.se)
The first thing I noticed when I got my CV64 last year was that the
Workbench icons flickered a lot when I moved them.
This is because CyberGraphX cannot handle VBLANK interrupts. This means
that many functions in graphics.library are broken (VBeamPos(), WaitBOVP()
and WaitTOF() for example).
This program is a hack that solves this problem. It uses timer.device to
simulate VBLANK interrupts at the correct frequency, and also syncronizes
the interrupts with the vertical retrace bit found in all VGA chips. In
addition to that, it uses the E clock to calculate which scan line the
raster beam is at.
Sounds good? It isn't. timer.device seem to have too much overhead for this
usage. The solution is to use a CIA level 6 timer interrupt instead. I
wont do that, but feel free to do it yourself - the source is included.
The program can only be used with CyberVision64, but it should be simple to
make it work with other graphic cards, since all use VGA compatible chips.
The program and source is public domain.